package com.design.model;

/**
 * 数字表达式类
 *
 * @author lw
 * @date 2023/12/4 15:08
 **/
public class NumberExpression implements Expression{

    private int value;

    public NumberExpression(int value) {
        this.value = value;
    }

    @Override
    public int interpret() {
        return value;
    }
}
